home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.20000217-20000824 / 000434_news@columbia.edu _Thu Jul 27 15:11:28 2000.msg < prev    next >
Internet Message Format  |  2000-08-23  |  3KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from watsun.cc.columbia.edu (watsun.cc.columbia.edu [128.59.39.2])
  3.     by fozimane.cc.columbia.edu (8.9.3/8.9.3) with ESMTP id PAA07281
  4.     for <kermit.misc@cpunix.cc.columbia.edu>; Thu, 27 Jul 2000 15:11:27 -0400 (EDT)
  5. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  6.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA08088
  7.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 27 Jul 2000 15:11:27 -0400 (EDT)
  8. Received: (from news@localhost)
  9.     by newsmaster.cc.columbia.edu (8.9.3/8.9.3) id PAA21501
  10.     for kermit.misc@watsun.cc.columbia.edu; Thu, 27 Jul 2000 15:06:31 -0400 (EDT)
  11. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  12. Message-ID: <39808882.30D9433C@compuserve.com>
  13. From: Sandy Rosenberg <SandyRosenberg@compuserve.com>
  14. Subject: Re: K95 SCRIPTS WITH DIRECT SERIAL CONNECTION
  15. Date: Thu, 27 Jul 2000 15:07:46 -0400
  16. Organization: PCNet
  17. To: kermit.misc@columbia.edu
  18.  
  19.  
  20.  
  21. Frank da Cruz wrote:
  22.  
  23. > In article <39789210.43E0A441@compuserve.com>,
  24. > Sandy Rosenberg  <SandyRosenberg@compuserve.com> wrote:
  25. > : I am trying to write a K95 script to be used with a direct serial
  26. > : connection to my Alphaserver running openVMS.  I want to automatically
  27. > : log in to the alpha, transfer a file, invoke a command, and log out.  I
  28. > : have done this with dial up connections without a problem.  With the
  29. > : direct connection however, the OUTPUT commands don't seem to go to the
  30. > : connected system - they come out in the command window instead.  Any
  31. > : suggestions would be appreciated.
  32. > :
  33. > It probably means that the script did not succeed in opening the connection.
  34. > Make sure your script specifies the same COM port that the cable is connected
  35. > to, and that you have a null-modem cable (or a modem cable with a null-modem
  36. > adapter).
  37. >
  38. > The script should go something like this:
  39. >
  40. >   set input echo on               ; So you can watch what happens
  41. >   set modem type none             ; Tell K95 there is no modem
  42. >   set carrier-watch off           ; This might or might not be necessary
  43. >   set port com1
  44. >   if fail stop 1 SET PORT failed
  45. >   set speed 19200                 ; (or whatever)
  46. >   output \13                      ; Send carriage return
  47. >   input 10 Username:              ; Wait 10 seconds for Username: prompt
  48. >   if fail stop 1 No Username: prompt
  49. >
  50. > For a more fully elaborated example, see Chapter 19 of Using C-Kermit.
  51. >
  52. > Also see Chapter 3 about direct serial connections.
  53. >
  54. > - Frank
  55.  
  56. This works well on the PC on my desk, however on the PC where I need the script,
  57. it does not seem to see the carriage returns that I send it.  The way I created
  58. the script was to use K95dialer to create a script, then I deleted the connect
  59. statement at the end and added my code to log in and send a file.  I cannot see
  60. anything different in the two machines to explain their behavior.  On the
  61. troublesome machine, I can type OUTPUT \13 at the command prompt and it sends a
  62. carriage return, but the script doesn't seem to.
  63.  
  64. Thanks again for any additional suggestions.
  65.  
  66. Sandy
  67.